emacs.git
12 years ago* lisp/progmodes/compile.el (compilation-parse-errors):
Stefan Monnier [Mon, 7 Oct 2013 05:15:48 +0000 (01:15 -0400)]
* lisp/progmodes/compile.el (compilation-parse-errors):
Use compilation--put-prop.
(compilation--ensure-parse): Check compilation-multiline.

12 years ago* lisp/emacs-lisp/easymenu.el (easy-menu-create-menu): Use closures.
Stefan Monnier [Mon, 7 Oct 2013 05:13:51 +0000 (01:13 -0400)]
* lisp/emacs-lisp/easymenu.el (easy-menu-create-menu): Use closures.

12 years ago* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Simplify, using lexical-binding.
Stefan Monnier [Mon, 7 Oct 2013 05:11:50 +0000 (01:11 -0400)]
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Simplify, using lexical-binding.

12 years ago* lisp/emacs-lisp/tq.el (tq-create): Use a closure instead of `(lambda...).
Stefan Monnier [Mon, 7 Oct 2013 05:10:06 +0000 (01:10 -0400)]
* lisp/emacs-lisp/tq.el (tq-create): Use a closure instead of `(lambda...).

12 years ago* doc/lispref/tips.texi (Comment Tips): Discourage use of triple semi-colons
Stefan Monnier [Mon, 7 Oct 2013 03:46:32 +0000 (23:46 -0400)]
* doc/lispref/tips.texi (Comment Tips): Discourage use of triple semi-colons
for non-headings.

12 years ago* lisp/progmodes/ruby-mode.el: Fix recently added tests.
Stefan Monnier [Mon, 7 Oct 2013 03:38:26 +0000 (23:38 -0400)]
* lisp/progmodes/ruby-mode.el: Fix recently added tests.
(ruby-smie-grammar): Add - and +.
(ruby-smie--redundant-do-p, ruby-smie--forward-id)
(ruby-smie--backward-id): New functions.
(ruby-smie--forward-token, ruby-smie--backward-token): Use them.
(ruby-smie-rules): Handle hanging do.  Get rid of hack, not needed
any more.
* test/indent/ruby.rb: Add a few more tests; adjust some indentation.

12 years ago* etc/NEWS: Mention new feature of register commands.
Leo Liu [Mon, 7 Oct 2013 03:34:26 +0000 (11:34 +0800)]
* etc/NEWS: Mention new feature of register commands.

12 years ago* register.el (register-preview-delay)
Leo Liu [Mon, 7 Oct 2013 01:28:34 +0000 (09:28 +0800)]
* register.el (register-preview-delay)
(register-preview-functions): New variables.
(register-read-with-preview, register-preview)
(register-describe-oneline): New functions.
(point-to-register, window-configuration-to-register)
(frame-configuration-to-register, jump-to-register)
(number-to-register, view-register, insert-register)
(copy-to-register, append-to-register, prepend-to-register)
(copy-rectangle-to-register): Use register-read-with-preview to
read register.

12 years ago* indent/ruby.rb: Fix a factual error.
Dmitry Gutov [Sun, 6 Oct 2013 21:34:40 +0000 (00:34 +0300)]
* indent/ruby.rb: Fix a factual error.

12 years ago* net/network-stream.el (network-stream-open-starttls): Don't add
Dato Simó [Sun, 6 Oct 2013 17:14:11 +0000 (19:14 +0200)]
* net/network-stream.el (network-stream-open-starttls): Don't add
--insecure if it's already present, because that gnutls-cli
rejects getting that parameter twice.

12 years agoDon't force auto hide dock when hide menu changes.
Jan D. [Sun, 6 Oct 2013 15:59:11 +0000 (17:59 +0200)]
Don't force auto hide dock when hide menu changes.

(ns_update_auto_hide_menu_bar): Remove runtime check.
Don't auto hide dock unless menubar is also auto hidden.

12 years ago* nsterm.m (ns_update_begin): If native fullscreen and no toolbar,
Jan D. [Sun, 6 Oct 2013 15:53:30 +0000 (17:53 +0200)]
* nsterm.m (ns_update_begin): If native fullscreen and no toolbar,
hide toolbar.
(windowDidEnterFullScreen:): If presentation options are zero,
set them here (Bug#15388).

12 years agoRemove unnecessary @refill.
Xue Fuqiao [Sun, 6 Oct 2013 09:46:04 +0000 (17:46 +0800)]
Remove unnecessary @refill.

12 years ago* test/automated/ruby-mode-tests.el: Add tests for `ruby-forward-sexp'
Dmitry Gutov [Sun, 6 Oct 2013 01:21:51 +0000 (04:21 +0300)]
* test/automated/ruby-mode-tests.el: Add tests for `ruby-forward-sexp'
and `ruby-backward-sexp' that fail when `ruby-use-smie' is t.

* test/indent/ruby.rb: Two more failing examples.

12 years ago* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Dedent `ensure'
Dmitry Gutov [Sun, 6 Oct 2013 00:46:28 +0000 (03:46 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Dedent `ensure'
keyword, too.

* test/indent/ruby.rb: Fix a syntax error, add a few failing examples.

12 years ago* lisp/newcomment.el (comment-use-global-state): Change default value
Dmitry Gutov [Sat, 5 Oct 2013 23:40:16 +0000 (02:40 +0300)]
* lisp/newcomment.el (comment-use-global-state): Change default value
to t, mark obsolete.
(comment-beginning): In addition to `comment-to-syntax', check the
value of `comment-use-global-state'.

12 years agoGet Ruby's SMIE code to pass the test suite.
Stefan Monnier [Sat, 5 Oct 2013 18:37:08 +0000 (14:37 -0400)]
Get Ruby's SMIE code to pass the test suite.
* lisp/progmodes/ruby-mode.el (ruby-use-smie): Change default.
(ruby-comment-column): Follow the global default, by default.
(ruby-smie-grammar): Add assignment syntax.
(ruby-smie--implicit-semi-p): No implicit semi-colon after an
open-paren, a comma, or a \.
(ruby-smie--forward-token, ruby-smie--backward-token): Handle heredocs,
and line continuations.
(ruby-smie-rules): Adjust handling of open-paren, now that it's never
followed by implicit semi-colons.  Add rule for string concatenation
and for indentation at BOB.
(ruby-forward-sexp, ruby-backward-sexp): Adjust for when smie is in use.

* lisp/emacs-lisp/smie.el (smie-next-sexp): Don't go back to pos before
calling next-sexp, since next-token may have skipped chars which
next-sexp doesn't know should be skipped!

* test/indent/ruby.rb: Port a few cases from automated/ruby-mode-tests.el.
Adjust indentation of continued line to the new SMIE behavior.

12 years agoRevert 114527
Dmitry Gutov [Sat, 5 Oct 2013 17:21:22 +0000 (20:21 +0300)]
Revert 114527

`last-coding-system-used' is unreliable: it can be modified by other functions
in `after-save-hook'.

12 years agoMinor doc fixes.
Xue Fuqiao [Sat, 5 Oct 2013 15:06:17 +0000 (23:06 +0800)]
Minor doc fixes.

12 years ago* nsterm.m (check_native_fs): Remove erroneous comment.
Jan D. [Sat, 5 Oct 2013 14:41:10 +0000 (16:41 +0200)]
* nsterm.m (check_native_fs): Remove erroneous comment.

12 years ago* doc/lispref/syntax.texi (Categories): Add an index for category sets.
Xue Fuqiao [Sat, 5 Oct 2013 11:49:02 +0000 (19:49 +0800)]
* doc/lispref/syntax.texi (Categories): Add an index for category sets.

12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 5 Oct 2013 10:17:33 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* progmodes/octave.el (octave-send-region): Call
Leo Liu [Sat, 5 Oct 2013 02:45:24 +0000 (10:45 +0800)]
* progmodes/octave.el (octave-send-region): Call
compilation-forget-errors.

12 years ago* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
Dmitry Gutov [Sat, 5 Oct 2013 02:26:39 +0000 (05:26 +0300)]
* lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding'
to `after-save-hook' instead of `before-save-hook', because then
we know exactly what encoding was used to write the file.
(ruby-mode-set-encoding): Use `last-coding-system-used' instead of
guessing.  Call `basic-save-buffer-1' after modifying the buffer.

12 years agoNew functions for finding the administrative directory in VC.
Xue Fuqiao [Fri, 4 Oct 2013 23:47:00 +0000 (07:47 +0800)]
New functions for finding the administrative directory in VC.

* vc/vc-svn.el (vc-svn-find-admin-dir):
* vc/vc-rcs.el (vc-rcs-find-admin-dir):
* vc/vc-mtn.el (vc-mtn-find-admin-dir):
* vc/vc-cvs.el (vc-cvs-find-admin-dir):
* vc/vc-arch.el (vc-arch-find-admin-dir): New functions.

12 years ago* lisp/textmodes/css-mode.el (css-smie-rules): Toplevel's a list.
Stefan Monnier [Fri, 4 Oct 2013 21:45:37 +0000 (17:45 -0400)]
* lisp/textmodes/css-mode.el (css-smie-rules): Toplevel's a list.
* test/automated/completion-tests.el:
* test/indent/css-mode.css: New files.

12 years ago* lisp/subr.el (read-passwd): Hide chars even when called within a context
Stefan Monnier [Fri, 4 Oct 2013 19:06:45 +0000 (15:06 -0400)]
* lisp/subr.el (read-passwd): Hide chars even when called within a context
where after-change-functions is disabled.
(set-temporary-overlay-map): Don't remove oneself from pre-command-hook
until we removed ourself from overriding-terminal-local-map.

12 years ago* progmodes/octave.el (inferior-octave-mode): Call
Leo Liu [Fri, 4 Oct 2013 15:11:13 +0000 (23:11 +0800)]
* progmodes/octave.el (inferior-octave-mode): Call
compilation-forget-errors.

12 years ago* lisp/emacs-lisp/syntax.el (syntax-ppss): Doc fix.
Xue Fuqiao [Fri, 4 Oct 2013 14:46:31 +0000 (22:46 +0800)]
* lisp/emacs-lisp/syntax.el (syntax-ppss): Doc fix.

12 years agoIn nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.
Paul Eggert [Fri, 4 Oct 2013 14:27:11 +0000 (16:27 +0200)]
In nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.

* gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.

12 years ago* xdisp.c (redisplay_internal): Simplify because scan_for_column now
Dmitry Antipov [Fri, 4 Oct 2013 13:41:10 +0000 (17:41 +0400)]
* xdisp.c (redisplay_internal): Simplify because scan_for_column now
uses find_newline instead of scan_newline and so doesn't move point.

12 years ago* net/secrets.el (secrets-create-collection): Add optional
Michael Albinus [Fri, 4 Oct 2013 10:31:59 +0000 (12:31 +0200)]
* net/secrets.el (secrets-create-collection): Add optional
argument ALIAS.  Use proper Label keyword.  Append ALIAS as
dbus-call-method argument.  (Bug#15516)

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 4 Oct 2013 10:17:40 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* progmodes/octave.el (inferior-octave-error-regexp-alist)
Leo Liu [Fri, 4 Oct 2013 09:45:25 +0000 (17:45 +0800)]
* progmodes/octave.el (inferior-octave-error-regexp-alist)
(inferior-octave-compilation-font-lock-keywords): New variables.
(compilation-error-regexp-alist)
(compilation-mode-font-lock-keywords): Defvar to pacify compiler.
(inferior-octave-mode): Use compilation-shell-minor-mode.

12 years agoUse hardware support for byteswapping on glibc x86 etc.
Paul Eggert [Fri, 4 Oct 2013 07:36:22 +0000 (00:36 -0700)]
Use hardware support for byteswapping on glibc x86 etc.

On Fedora 19 x86-64, the new bswap_64 needs 1 instruction,
whereas the old swap64 needed 30.
* admin/merge-gnulib (GNULIB_MODULES): Add byteswap.
* lib/byteswap.in.h, m4/byteswap.m4: New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* src/fringe.c (init_fringe_bitmap) [WORDS_BIGENDIAN]:
* src/sound.c (le2hl, le2hs, be2hl) [!WINDOWSNT]:
Use byteswap.h's macros to swap bytes.
* src/lisp.h (swap16, swap32, swap64): Remove.
All uses replaced by bswap_16, bswap_32, bswap_64.

12 years ago* bytecode.c (exec_byte_code): Use some more volatile variables
Paul Eggert [Fri, 4 Oct 2013 06:51:50 +0000 (23:51 -0700)]
* bytecode.c (exec_byte_code): Use some more volatile variables

to work around local variables getting clobbered by longjmp.
Port to pre-C99, which doesn't allow decls after stmts.

12 years ago* lisp/minibuffer.el (completion--replace): Be careful that `end' might be
Jorgen Schaefer [Fri, 4 Oct 2013 02:12:16 +0000 (22:12 -0400)]
* lisp/minibuffer.el (completion--replace): Be careful that `end' might be
a marker.

12 years ago* lisp.h (eassert): Assume that COND is true when optimizing.
Paul Eggert [Thu, 3 Oct 2013 16:16:31 +0000 (09:16 -0700)]
* lisp.h (eassert): Assume that COND is true when optimizing.

In other words, take on the behavior of eassert_and_assume.
This makes Emacs 0.2% smaller on my platform (Fedora 19, x86-64).
(eassert_and_assume): Remove.  All uses replaced by eassert.

12 years agoAdd an index for modify-syntax-entry.
Xue Fuqiao [Thu, 3 Oct 2013 15:32:10 +0000 (23:32 +0800)]
Add an index for modify-syntax-entry.

12 years ago* doc/lispref/syntax.texi (Syntax Flags): Add an index for comment style.
Xue Fuqiao [Thu, 3 Oct 2013 15:09:18 +0000 (23:09 +0800)]
* doc/lispref/syntax.texi (Syntax Flags): Add an index for comment style.

12 years ago* xdisp.c (Qglyphless_char): Now static.
Paul Eggert [Thu, 3 Oct 2013 13:55:28 +0000 (06:55 -0700)]
* xdisp.c (Qglyphless_char): Now static.

12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 3 Oct 2013 10:17:43 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoAdd support for package signature checking.
Daiki Ueno [Thu, 3 Oct 2013 07:11:27 +0000 (16:11 +0900)]
Add support for package signature checking.

* lisp/emacs-lisp/package.el (url-http-file-exists-p)
(epg-make-context, epg-context-set-home-directory)
(epg-verify-string, epg-context-result-for)
(epg-signature-status, epg-signature-to-string)
(epg-check-configuration, epg-configuration)
(epg-import-keys-from-file): Declare.
(package-check-signature): New user option.
(package-unsigned-archives): New user option.
(package-desc): Add `signed' field.
(package-load-descriptor): Set `signed' field if .signed file exists.
(package--archive-file-exists-p): New function.
(package--check-signature): New function.
(package-install-from-archive): Check package signature.
(package--download-one-archive): Check archive signature.
(package-delete): Remove .signed file.
(package-import-keyring): New command.
(package-refresh-contents): Import default keyring.
(package-desc-status): Add "unsigned" status.
(describe-package-1, package-menu--print-info)
(package-menu-mark-delete, package-menu--find-upgrades)
(package-menu--status-predicate): Support "unsigned" status.

* test/automated/data/package/signed/archive-contents:
* test/automated/data/package/signed/archive-contents.sig:
* test/automated/data/package/signed/signed-good-1.0.el:
* test/automated/data/package/signed/signed-good-1.0.el.sig:
* test/automated/data/package/signed/signed-bad-1.0.el:
* test/automated/data/package/signed/signed-bad-1.0.el.sig:
* test/automated/data/package/key.pub:
* test/automated/data/package/key.sec: New files.

* test/automated/package-test.el (package-test-update-listing)
(package-test-update-archives, package-test-describe-package):
Adjust to package.el change.
(package-test-signed): New test.

12 years agoMerge from gnulib.
Paul Eggert [Thu, 3 Oct 2013 07:06:52 +0000 (00:06 -0700)]
Merge from gnulib.

* src/conf_post.h (__has_builtin, assume): Remove; gnulib now does these.
* src/lisp.h: Include <verify.h>, for 'assume'.

This also incorpoprates:
2013-10-02 verify: new macro 'assume'
2013-09-26 dup2, dup3: work around another cygwin crasher
2013-09-26 getdtablesize: work around cygwin issue

12 years ago* eval.c (clobbered_eassert): New macro.
Paul Eggert [Thu, 3 Oct 2013 06:31:06 +0000 (23:31 -0700)]
* eval.c (clobbered_eassert): New macro.

(internal_catch, internal_condition_case)
(internal_condition_case_1, internal_condition_case_2)
(internal_condition_case_n): Use it instead of eassert
when the argument contains locals clobbered by longjmp.
Don't use clobbered locals outside of clobbered_eassert.
(internal_lisp_condition_case): Use a volatile variable
to work around a local variable's getting clobbered.

12 years agoIntroduce new bytecodes for efficient catch/condition-case in lexbind.
Stefan Monnier [Thu, 3 Oct 2013 04:58:56 +0000 (00:58 -0400)]
Introduce new bytecodes for efficient catch/condition-case in lexbind.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Optimize under `condition-case' and `catch' if
byte-compile--use-old-handlers is nil.
(disassemble-offset): Handle new bytecodes.

* lisp/emacs-lisp/bytecomp.el (byte-pushcatch, byte-pushconditioncase)
(byte-pophandler): New byte codes.
(byte-goto-ops): Adjust accordingly.
(byte-compile--use-old-handlers): New var.
(byte-compile-catch): Use new byte codes depending on
byte-compile--use-old-handlers.
(byte-compile-condition-case--old): Rename from
byte-compile-condition-case.
(byte-compile-condition-case--new): New function.
(byte-compile-condition-case): New function that dispatches depending
on byte-compile--use-old-handlers.
(byte-compile-unwind-protect): Pass a function to byte-unwind-protect
when we can.

* lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form): Adjust for
the new compilation scheme using the new byte-codes.

* src/alloc.c (Fgarbage_collect): Merge scans of handlerlist and catchlist,
and make them unconditional now that they're heap-allocated.

* src/bytecode.c (BYTE_CODES): Add Bpushcatch, Bpushconditioncase
and Bpophandler.
(bcall0): New function.
(exec_byte_code): Add corresponding cases.  Improve error message when
encountering an invalid byte-code.  Let Bunwind_protect accept
a function (rather than a list of expressions) as argument.

* src/eval.c (catchlist): Remove (merge with handlerlist).
(handlerlist, lisp_eval_depth): Not static any more.
(internal_catch, internal_condition_case, internal_condition_case_1)
(internal_condition_case_2, internal_condition_case_n):
Use PUSH_HANDLER.
(unwind_to_catch, Fthrow, Fsignal): Adjust to merged
handlerlist/catchlist.
(internal_lisp_condition_case): Use PUSH_HANDLER.  Adjust to new
handlerlist which can only handle a single condition-case handler at
a time.
(find_handler_clause): Simplify since we only a single branch here
any more.

* src/lisp.h (struct handler): Merge struct handler and struct catchtag.
(PUSH_HANDLER): New macro.
(catchlist): Remove.
(handlerlist): Always declare.

12 years ago* lisp/subr.el (decode-char, encode-char): Use advertised-calling-convention
Stefan Monnier [Thu, 3 Oct 2013 04:41:23 +0000 (00:41 -0400)]
* lisp/subr.el (decode-char, encode-char): Use advertised-calling-convention
instead of the docstring to discourage use of the `restriction' arg.
(error): Use `declare'.
* src/charset.c (Fdecode_char, Fencode_char): Remove description of
`restriction' arg. now that it's hidden by advertised-calling-convention.

12 years agoepg: doc improvement for verify functions
Daiki Ueno [Thu, 3 Oct 2013 01:29:17 +0000 (10:29 +0900)]
epg: doc improvement for verify functions

* epg.el (epg-verify-file): Add a comment saying that it does not
notify verification error as a return value nor a signal.
(epg-verify-string): Ditto.

12 years ago* lisp/progmodes/compile.el (compilation-start): Try globbing the arg to `cd'.
Kevin Rodgers [Wed, 2 Oct 2013 23:33:48 +0000 (19:33 -0400)]
* lisp/progmodes/compile.el (compilation-start): Try globbing the arg to `cd'.

12 years ago* macfont.m (macfont_draw): Use s->ybase for correct y position.
Jan D. [Wed, 2 Oct 2013 18:52:34 +0000 (20:52 +0200)]
* macfont.m (macfont_draw): Use s->ybase for correct y position.

12 years ago* frame.h (struct frame): Drop has_minibuffer member because...
Dmitry Antipov [Wed, 2 Oct 2013 15:38:12 +0000 (19:38 +0400)]
* frame.h (struct frame): Drop has_minibuffer member because...
(FRAME_HAS_MINIBUF_P): ...this macro can be implemented without it.
* frame.c (make_frame, make_minibuffer_frame): Adjust users.

12 years agoAdd an index for the table of syntax classes.
Xue Fuqiao [Wed, 2 Oct 2013 15:14:06 +0000 (23:14 +0800)]
Add an index for the table of syntax classes.

* doc/lispref/syntax.texi (Syntax Class Table): Add an index for syntax class table.

12 years agoSync with Tramp 2.2.8.
Michael Albinus [Wed, 2 Oct 2013 13:52:32 +0000 (15:52 +0200)]
Sync with Tramp 2.2.8.

* tramp.texi (External packages): Use `non-essential'.
* trampver.texi: Update release number.

12 years agoSync with Tramp 2.2.8.
Michael Albinus [Wed, 2 Oct 2013 13:51:21 +0000 (15:51 +0200)]
Sync with Tramp 2.2.8.

* tramp.texi (External packages): Use `non-essential'.
* trampver.texi: Update release number.

12 years agoSync with Tramp 2.2.8.
Michael Albinus [Wed, 2 Oct 2013 13:48:20 +0000 (15:48 +0200)]
Sync with Tramp 2.2.8.

* net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
* net/tramp-cache.el (tramp-cache-print): Use `tramp-compat-funcall'.
* net/trampver.el: Update release number.

12 years ago* window.h (struct window): Prefer enum text_cursor_kinds to int
Dmitry Antipov [Wed, 2 Oct 2013 12:08:27 +0000 (16:08 +0400)]
* window.h (struct window): Prefer enum text_cursor_kinds to int
for phys_cursor_type member.  Move the latter, phys_cursor_width,
phys_cursor_ascent and phys_cursor_height under HAVE_WINDOW_SYSTEM.
* window.c (replace_window, make_window): Adjust users.

12 years ago* fringe.c (toplevel): Do not use HAVE_WINDOW_SYSTEM because
Dmitry Antipov [Wed, 2 Oct 2013 11:49:24 +0000 (15:49 +0400)]
* fringe.c (toplevel): Do not use HAVE_WINDOW_SYSTEM because
this module is never compiled otherwise.

12 years ago * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect
Alp Aker [Wed, 2 Oct 2013 03:26:29 +0000 (23:26 -0400)]
  * macfont.m (macfont_draw): Use CGRectMake rather than NSMakeRect
  (Bug#15500).

12 years ago* themes/leuven-theme.el: Add Commentary and some headers, update
Fabrice Niessen [Wed, 2 Oct 2013 03:09:31 +0000 (06:09 +0300)]
* themes/leuven-theme.el: Add Commentary and some headers, update
  face definitions, add autoload block which is used when
  distributed separately from Emacs.

12 years ago* lisp/term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
Jan D. [Tue, 1 Oct 2013 18:22:48 +0000 (20:22 +0200)]
* lisp/term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
and default-process-coding-system for darwin only.

12 years ago* lisp/emacs-lisp/package.el (package-desc): Simplify.
Stefan Monnier [Tue, 1 Oct 2013 15:52:53 +0000 (11:52 -0400)]
* lisp/emacs-lisp/package.el (package-desc): Simplify.

12 years ago* lisp/vc/vc-git.el (vc-git-grep): Disable pager.
Mitchel Humpherys [Tue, 1 Oct 2013 15:34:14 +0000 (11:34 -0400)]
* lisp/vc/vc-git.el (vc-git-grep): Disable pager.

12 years agoAuto-commit of loaddefs files.
Glenn Morris [Tue, 1 Oct 2013 10:17:41 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

12 years ago* lisp/emacs-lisp/package.el (package-buffer-info, describe-package-1):
Dmitry Gutov [Tue, 1 Oct 2013 01:38:37 +0000 (04:38 +0300)]
* lisp/emacs-lisp/package.el (package-buffer-info, describe-package-1):
Use :url instead of :homepage, as per
http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00622.html

* test/automated/package-test.el: Update all cases to use :url instead
of :homepage.

* test/automated/package-x-test.el
(package-x-test--single-archive-entry-1-3): Same.

12 years ago* lisp/newcomment.el (comment-beginning): When `comment-use-syntax' is
Dmitry Gutov [Tue, 1 Oct 2013 01:13:48 +0000 (04:13 +0300)]
* lisp/newcomment.el (comment-beginning): When `comment-use-syntax' is
non-nil, use `syntax-ppss'.

12 years ago* progmodes/octave.el (inferior-octave-startup-file): Prefer
Rüdiger Sonderfeld [Mon, 30 Sep 2013 01:13:19 +0000 (09:13 +0800)]
* progmodes/octave.el (inferior-octave-startup-file): Prefer
~/.emacs.d/init_octave.m.

12 years ago* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Pass
Dmitry Gutov [Sun, 29 Sep 2013 19:41:00 +0000 (22:41 +0300)]
* lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Pass
`extras' slot from `package-desc' to `package-make-ac-desc'.

* lisp/emacs-lisp/package.el (package-desc-from-define): Accept
additional arguments as plist, convert it to an alist and store it
in the `extras' slot.
(package-generate-description-file): Convert extras alist back to
plist and append to the `define-package' form arguments.
(package--alist-to-plist): New function.
(package--ac-desc): Add `extras' slot.
(package--add-to-archive-contents): Check if the archive-contents
vector is long enough, and if it is, pass its `extras' slot value
to `package-desc-create'.
(package-buffer-info): Call `lm-homepage', pass the returned value
to `package-desc-from-define'.
(describe-package-1): Render the homepage button.

* test/automated/package-test.el (simple-single-desc-1-4): Remove, it
was unused.
(simple-single-desc): Expect :homepage property.
(multi-file-desc): Same.
(with-package-test): Do not save previous `default-directory'
value, let-bind the var instead.
(package-test-install-single): Expect :homepage property in the
generated pkg file.
(package-test-describe-package): Expect Homepage button.
(package-test-describe-non-installed-package)
(package-test-describe-non-installed-multi-file-package): Same.
(package-test-describe-not-installed-package): Remove, it was a
duplicate.

* test/automated/package-x-test.el
(package-x-test--single-archive-entry-1-3): Expect :homepage
property.
(package-x-test--single-archive-entry-1-4): Expect nil extras slot.

* test/automated/data/package/archive-contents: Add :homepage
properties to `simple-single' and `multi-file'.

* test/automated/data/package/simple-single-1.3.el: Add URL header.

12 years ago* term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
Jan D. [Sun, 29 Sep 2013 17:09:39 +0000 (19:09 +0200)]
* term/ns-win.el (ns-initialize-window-system): Set locale-coding-system
and default-process-coding-system to utf-8-unix.

12 years agoFix bug #15484 with link error in the --without-x configuration.
Eli Zaretskii [Sun, 29 Sep 2013 16:27:09 +0000 (19:27 +0300)]
Fix bug #15484 with link error in the --without-x configuration.

 src/xdisp.c (get_next_display_element): Don't call face_for_font in
 a build configured --without-x.

12 years ago* window.c (calc_absolute_offset): #elif should be #elif defined.
Jan D. [Sun, 29 Sep 2013 16:18:55 +0000 (18:18 +0200)]
* window.c (calc_absolute_offset): #elif should be #elif defined.

12 years ago* frame.c (delete_frame): Block/unblock input to overcome race
Jan D. [Sun, 29 Sep 2013 10:21:58 +0000 (12:21 +0200)]
* frame.c (delete_frame): Block/unblock input to overcome race
condition.

12 years agoIn delete_frame record selected frame only after calling Qdelete_frame_functions...
Andreas Politz [Sun, 29 Sep 2013 08:33:23 +0000 (10:33 +0200)]
In delete_frame record selected frame only after calling Qdelete_frame_functions (Bug#15477).

* frame.c (delete_frame): Record selected frame only after
calling Qdelete_frame_functions (Bug#15477).

12 years agoRefine documentation of `looking-back'.
Xue Fuqiao [Sun, 29 Sep 2013 06:16:45 +0000 (14:16 +0800)]
Refine documentation of `looking-back'.

* lisp/subr.el (looking-back): Do not recommend using looking-back.  (bug#5689)
* doc/lispref/searching.texi (Regexp Search): Refine.

12 years agoRemove unnecessary @refill.
Xue Fuqiao [Sun, 29 Sep 2013 04:30:11 +0000 (12:30 +0800)]
Remove unnecessary @refill.

12 years ago* url/url-util.el (url-pretty-length): Make obsolete and all uses
Leo Liu [Sun, 29 Sep 2013 01:37:03 +0000 (09:37 +0800)]
* url/url-util.el (url-pretty-length): Make obsolete and all uses
changed to file-size-human-readable.

12 years agoRemove an unnecessary FIXME.
Xue Fuqiao [Sat, 28 Sep 2013 22:26:29 +0000 (06:26 +0800)]
Remove an unnecessary FIXME.

12 years agoFix indentation/fontification of Java enum with "implements".
Alan Mackenzie [Sat, 28 Sep 2013 17:17:01 +0000 (17:17 +0000)]
Fix indentation/fontification of Java enum with "implements".

* progmodes/cc-langs.el (c-postfix-decl-spec-key): New variable, a
regexp which matches "implements", etc., in Java.
* progmodes/cc-engine.el (c-inside-bracelist-p): Check for extra
specifier clauses coming after "enum".
* progmodes/cc-fonts.el (c-font-lock-declarations)
(c-font-lock-enum-tail): Check for extra specifier clauses coming
after "enum".

12 years agoPick up default selection color on OSX when user defaults are not set.
Jan D. [Sat, 28 Sep 2013 10:01:50 +0000 (12:01 +0200)]
Pick up default selection color on OSX when user defaults are not set.

* lisp/faces.el (region): Change ns_selection_color to
ns_selection_fg_color, add ns_selection_bg_color.

* src/nsterm.h (NS_SELECTION_BG_COLOR_DEFAULT): Renamed from
NS_SELECTION_COLOR_DEFAULT.
(NS_SELECTION_FG_COLOR_DEFAULT): New.

* src/nsterm.m (ns_selection_color): Remove.
(ns_get_color): Check for ns_selection_(fg|bg)_color using
NSColor selectedText(Background)Color.  Only for COCOA.
(ns_term_init): Remove assignment of ns_selection_color, logic
moved to ns_get_color.

12 years agoFix compilation under GLYPH_DEBUG, broken by conditional tool_bar_window.
Eli Zaretskii [Sat, 28 Sep 2013 08:19:33 +0000 (11:19 +0300)]
Fix compilation under GLYPH_DEBUG, broken by conditional tool_bar_window.

 src/xdisp.c (Fdump_tool_bar_row): Ifdef away the body if 'struct
 frame' does not have the tool_bar_window member.

12 years ago* progmodes/octave.el (inferior-octave-completion-table)
Leo Liu [Sat, 28 Sep 2013 03:15:56 +0000 (11:15 +0800)]
* progmodes/octave.el (inferior-octave-completion-table)
(inferior-octave-completion-at-point): Minor tweaks.

12 years agoRename lookup-words to ispell-lookup-words
Leo Liu [Sat, 28 Sep 2013 02:54:27 +0000 (10:54 +0800)]
Rename lookup-words to ispell-lookup-words
(ispell-complete-word, ispell-command-loop): All uses changed.

* cedet/semantic/texi.el (semantic-analyze-possible-completions): Use
ispell-lookup-words instead.

12 years ago* lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer.
Rüdiger Sonderfeld [Sat, 28 Sep 2013 02:41:48 +0000 (10:41 +0800)]
* lisp/progmodes/octave.el (octave-mode-map): Bind octave-send-buffer.
(octave-mode-menu): Add octave-send-buffer.
(octave-send-buffer): New function.

12 years ago* lisp/progmodes/octave.el (octave-mode-map): Add key binding for
Rüdiger Sonderfeld [Sat, 28 Sep 2013 02:30:37 +0000 (10:30 +0800)]
* lisp/progmodes/octave.el (octave-mode-map): Add key binding for
octave-lookfor.
(octave-mode-menu): Add octave-lookfor.
(inferior-octave-mode-map, octave-help-mode-map): Bind C-ha to
octave-lookfor.
(octave-lookfor): New function.

12 years agoFix typo.
Xue Fuqiao [Sat, 28 Sep 2013 01:52:23 +0000 (09:52 +0800)]
Fix typo.

12 years agoComment.
Xue Fuqiao [Sat, 28 Sep 2013 01:48:06 +0000 (09:48 +0800)]
Comment.

12 years ago* lisp/emacs-lisp/cl-macs.el:
Stefan Monnier [Sat, 28 Sep 2013 01:07:18 +0000 (21:07 -0400)]
* lisp/emacs-lisp/cl-macs.el:
(cl--loop-destr-temps): Remove.
(cl--loop-iterator-function): Rename from cl--loop-map-form and change
its convention.
(cl--loop-set-iterator-function): New function.
(cl-loop): Adjust accordingly, so as not to use cl-subst.
(cl--parse-loop-clause): Adjust all uses of cl--loop-map-form.
Bind `it' with `let' instead of substituting it with `cl-subst'.
(cl--unused-var-p): New function.
(cl--loop-let): Don't use the cl--loop-destr-temps hack any more.
Eliminate some unused variable warnings.

12 years ago* doc-view.el (doc-view-scale-reset): Rename from
Tassilo Horn [Fri, 27 Sep 2013 06:46:49 +0000 (08:46 +0200)]
* doc-view.el (doc-view-scale-reset): Rename from
`doc-view-reset-zoom-level'.
(doc-view-scale-adjust): New command.
(doc-view-mode-map): Remap `text-scale-adjust' bindings to
`doc-view-scale-adjust'.

12 years ago* doc-view.el (doc-view-reset-zoom-level): New command.
Tassilo Horn [Thu, 26 Sep 2013 19:05:50 +0000 (21:05 +0200)]
* doc-view.el (doc-view-reset-zoom-level): New command.
(doc-view-mode-map): Remap text-scale-adjust bindings to doc-view
zoom commands (bug#15466).

12 years ago* doc/emacs/dired.texi (Flagging Many Files): Use @emph instead of @strong.
Xue Fuqiao [Thu, 26 Sep 2013 14:22:49 +0000 (22:22 +0800)]
* doc/emacs/dired.texi (Flagging Many Files): Use @emph instead of @strong.

12 years agointernational/quail.el (quail-help): Make it not a command.
K. Handa [Thu, 26 Sep 2013 13:51:34 +0000 (22:51 +0900)]
international/quail.el (quail-help): Make it not a command.

12 years agomerge turnk
K. Handa [Thu, 26 Sep 2013 13:50:56 +0000 (22:50 +0900)]
merge turnk

12 years agointernational/quail.el (quail-help): Make it not a command.
K. Handa [Thu, 26 Sep 2013 13:46:50 +0000 (22:46 +0900)]
international/quail.el (quail-help): Make it not a command.

12 years ago* doc/emacs/emacs.texi (Intro): Minor cleanup.
Xue Fuqiao [Thu, 26 Sep 2013 13:42:29 +0000 (21:42 +0800)]
* doc/emacs/emacs.texi (Intro): Minor cleanup.

12 years agomerge turnk
K. Handa [Thu, 26 Sep 2013 13:33:50 +0000 (22:33 +0900)]
merge turnk

12 years agoSignal error when reading an empty byte-code object (Bug#15405)
Barry O'Reilly [Thu, 26 Sep 2013 03:46:47 +0000 (23:46 -0400)]
Signal error when reading an empty byte-code object (Bug#15405)
* lread.c (read1): signal error
* alloc.c (make_byte_code): eassert header size
(sweep_vectors): change an int to size_t

12 years ago* minibuffer.el (completion-all-sorted-completions): Make args
Leo Liu [Thu, 26 Sep 2013 00:46:29 +0000 (08:46 +0800)]
* minibuffer.el (completion-all-sorted-completions): Make args
optional as they are.

12 years ago* emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
Daniel Colascione [Wed, 25 Sep 2013 22:39:53 +0000 (14:39 -0800)]
* emacs-lisp/cl-macs.el (cl-type-spec): Tell edebug what type
specs are and that they're not evaluated.

12 years agoAuto-commit of generated files.
Glenn Morris [Wed, 25 Sep 2013 10:17:46 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoMerge from gnulib.
Paul Eggert [Wed, 25 Sep 2013 03:44:34 +0000 (20:44 -0700)]
Merge from gnulib.

This incorporates:
2013-09-24 manywarnings: enable nicer gcc warning messages
2013-09-23 warnings: port --enable-gcc-warnings to Solaris Studio 12.3
2013-09-21 timespec: use the new TIMESPEC_RESOLUTION elsewhere
* configure.ac (WERROR_CFLAGS): Omit -fdiagnostics-show-option
and -funit-at-a-time, since manywarnings does that for us now.

12 years ago* lisp/midnight.el (clean-buffer-list-kill-regexps)
Sam Steingold [Tue, 24 Sep 2013 17:34:51 +0000 (13:34 -0400)]
* lisp/midnight.el (clean-buffer-list-kill-regexps)
(clean-buffer-list-kill-buffer-names): Update for the new Man
buffer naming which includes the object name.